home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11776 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++
  4. Subject: Re: C/C++ knocks the crap out of Ada
  5. Date: 15 Mar 1996 18:04:27 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4id7jbINN9jk@keats.ugrad.cs.ubc.ca>
  8. References: <00001a73+00002504@msn.com> <4i9ld6$m2v@rational.rational.com> <4iah20$p7k@saba.info.ucla.edu> <4ictel$18v@tpd.dsccc.com>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <4ictel$18v@tpd.dsccc.com>,
  12. Kevin Cline <kcline@sun132.spd.dsccc.com> wrote:
  13.  >>Heh, I have seen people using Lex and Yacc to build parsers to read
  14.  >>in simple tables. 
  15.  >>Like swatting a bug with a sledge hammer (they ever heard of "scanf"?)
  16.  >
  17.  >Maybe, but I personally find it much easier to maintain lex & yacc
  18.  >grammers which make the file syntax explicit, instead of trying to
  19.  >divine the syntax from scanf statements scattered throughout a dozen
  20.  >subroutines.
  21.  >
  22.  >Lex and yacc are so useful that the DoD paid some good folks at 
  23.  >U Cal Irvine to convert flex and bison (the GNU versions of lex and yacc)
  24.  >from C to Ada.  I used them, they worked well, and saved me much
  25.  >aggravation trying to do the same thing at the Ada Standard I/O level. 
  26.  >
  27.  >The scanf programmers tend to define their input file syntax to make
  28.  >it easy to parse, rather than easy to read, and then resist all
  29.  >suggestions to extend the syntax for user convenience.
  30.  
  31. There you go. You said what I was trying to say in a better manner.
  32.  
  33. The Ada flex and bison sound cool!
  34.  
  35.  >>By the way after 10+ years of using Unix I am
  36.  >>having trouble thinking of a standard Unix utility that is not a
  37.  >>total misdesigned piece of crap!  Maybe someone can help me.
  38.  >
  39.  >I agree.  They are all horrible.  The only thing worse is working on
  40.  >systems like VAX/VMS or MS/DOS which have no utilities at all.
  41.  
  42. Touche!
  43. -- 
  44.  
  45.